package com.pda.xinma.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.xinma.R;
import com.pda.xinma.bean.request.RecommendRequest;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class RecommendAdapter extends BaseAdapter<RecommendRequest.OrderInfosBean> {
    public RecommendAdapter(int layoutResId, @Nullable List<RecommendRequest.OrderInfosBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, RecommendRequest.OrderInfosBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_orderNo,item.getProOrderNo());
        helper.setText(R.id.tv_grade,item.getStorageBin());
        helper.setText(R.id.tv_manzSpecId,item.getManzSpecName());
        helper.setText(R.id.et_num,item.getInNum());
    }
}
